﻿using System.Collections.Generic;
using Webdiyer.AspNetCore;
using ZhongKeSite.Entity;

namespace ZhongKeSite.Service
{
    public interface IPortalService
    {
        #region 前台
        /// <summary>
        /// 新闻
        /// </summary>
        /// <returns></returns>
        NewsInfo GetNewsInfo();
        /// <summary>
        /// 新闻详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        NewsDetail GetNewsDetailInfo(string id);
        /// <summary>
        /// 关于我们
        /// </summary>
        /// <returns></returns>
        AboutInfo GetAboutInfo();
        /// <summary>
        /// 故事页面
        /// </summary>
        /// <returns></returns>
        List<News> GetStoryInfo();
        /// <summary>
        /// 创新
        /// </summary>
        /// <returns></returns>
        InnovateInfo GetInnovateInfo();
        /// <summary>
        /// 更多创新
        /// </summary>
        /// <returns></returns>
        PagedList<News> GetInnovateList(int pageindex, int pagesize);
        /// <summary>
        /// 得到一个专家
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Expert GetExpert(string id);
        /// <summary>
        /// 联系我们页面
        /// </summary>
        /// <returns></returns>
        SinglePage GetContactInfo();
        /// <summary>
        /// 支持
        /// </summary>
        /// <returns></returns>
        SupportInfo GetSupportInfo();
        /// <summary>
        /// 订阅
        /// </summary>
        /// <param name="email"></param>
        /// <returns></returns>
        ResultResponse Subscribe(string email);
        ResultResponse SendMail(EmailModel model);
        #endregion
    }
}
